﻿using System;
using System.Collections.Generic;
using System.ServiceModel;

using RestfulRIAs.DataContracts;
using RestfulRIAs.ServiceContracts;

namespace RestfulRIAs.Services
{
    public class BorrowerService : IBorrowerRestfulService
    {
        #region IBorrowerRestfulService Members

        public string CreateBorrower(string LOANNUMBER, RestfulRIAs.DataContracts.BorrowerDto Borrower)
        {
            throw new NotImplementedException();
        }

        public BorrowerDto[] GetBorrowers(string LOANNUMBER, string BORROWERID)
        {
            throw new NotImplementedException();
        }

        public BorrowerDto UpdateBorrower(string LOANNUMBER, string BORROWERID, RestfulRIAs.DataContracts.BorrowerDto Borrower)
        {
            throw new NotImplementedException();
        }

        public void DeleteBorrower(string LOANNUMBER, string BORROWERID, RestfulRIAs.DataContracts.BorrowerDto Borrower)
        {
            throw new NotImplementedException();
        }

        #endregion
    }

    public class LoanService : ILoanRestfulService
    {
        #region ILoanRestfulService Members

        public string CreateLoan(RestfulRIAs.DataContracts.LoanDto Loan)
        {
            return "loan created!";
        }

        public LoanDto[] GetLoans(string LOANNUMBER)
        {
            throw new NotImplementedException();
        }

        public LoanDto UpdateLoan(string LOANNUMBER, RestfulRIAs.DataContracts.LoanDto Loan)
        {
            throw new NotImplementedException();
        }

        public void DeleteLoan(string LOANNUMBER, RestfulRIAs.DataContracts.LoanDto Loan)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
